x = sym('x');

limit(sin(x)/x, x, 0)

limit(1/x,x,0,"left")

limit(1/x,x,0,"right")